package top.yxf.gulimall.product.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import top.yxf.common.to.SkuReductionTo;
import top.yxf.common.to.SpuBoundsTo;
import top.yxf.common.utils.R;

@FeignClient("gulimall-coupon")
@Component
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);


    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTo reductionTo);
}
